<template>
  <div>
  <img slot="header" src="../assets/images/bj_img@3x.jpg" style="width:100%;display:block;">
    <flexbox :gutter="0" wrap="wrap">
      <flexbox-item :span="1/2"><div class="flex-demo">1</div></flexbox-item>
      <flexbox-item :span="1/2"><div class="flex-demo">2</div></flexbox-item>
      <flexbox-item :span="1/2"><div class="flex-demo">3</div></flexbox-item>
      <flexbox-item :span="1/2"><div class="flex-demo">4</div></flexbox-item>
    </flexbox>
    </div>
</template>

<script>
import { Flexbox, FlexboxItem, Divider } from 'vux'
export default {
  components: {
    Flexbox,
    FlexboxItem,
    Divider
  }
}
</script>

<style lang="less">
@import '~vux/src/styles/1px.less';
.flex-demo {
  text-align: center;
  color: #fff;
  background-color: #20b907;
  border-radius: 4px;
  background-clip: padding-box;
}
</style>